<template>
  <view class="content">
    <text class="iconfont hy-icon-paySuccess"></text>
    <text class="tit">支付成功</text>

    <view class="btn-group">
      <!-- <navigator
        url="/packageB/pages/order/index?state=0"
        open-type="redirect"
        class="mix-btn"
        >查看订单</navigator
      > -->
      <u-button @click="handleClick" type="success">返回首页</u-button>
      <!-- <u-button
        type="success"
        open-type="launchApp"
        app-parameter="wechat"
        binderror="launchAppError"
        :custom-style="{
          marginTop: '40rpx'
        }"
        >打开APP</u-button
      > -->
      <!-- #ifdef H5 -->
      <!-- <u-button @click="toDownload" type="success" style="margin-top: 40rpx"
        >下载APP享免单</u-button
      > -->
      <!-- #endif -->
    </view>
  </view>
</template>

<script setup lang="ts">
function handleClick() {
  uni.redirectTo({
    url: '/pages/launch/index'
  })
}
function toDownload() {
  window.open('https://www.blacksilverscore.com/download/index.html')
}
</script>

<style lang="scss">
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hy-icon-paySuccess {
  color: #19be6b;
  font-size: 160rpx;
  margin-top: 100rpx;
}
.tit {
  font-size: 38upx;
  color: #303133;
  margin-top: 20rpx;
}
.btn-group {
  padding-top: 100upx;
}
.mix-btn {
  margin-top: 30upx;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600upx;
  height: 80upx;
  font-size: 36rpx;
  color: #fff;
  border-radius: 10upx;
  &.hollow {
    background: #fff;
    color: #303133;
    border: 1px solid #ccc;
  }
}
</style>
